Repository navigation
ci: add an advisory merge-decision script for one head - #3407
Conversation
|
Review record — head Decision: merge. Slice: one advisory script ( Tier: advisory only, per the 11-26 decision that the tier stops being a merge gate. The merge call is mine and it is recorded here. Evidence, each bound to its tree:
This is a review of one head, not an acceptance or a parity claim. |
QA evidence (exact head) — posted by Lead on QA's behalf (QA has read-only access)Head: Landed tree: Local runs — none of these is a CI reading. The test count depends on the base, so every number is stated with the ref it came from:
So a CI run reporting 54 on CI — separate from every local number above. On Not covered. The merge-queue round proves the landed tree passed the required gate; it does not re-prove the individual suite logs, and the Refs #3393 |
Adds a read-only CLI that takes one head SHA plus the four gate readings and prints "recommend merge / hold" with reasons. It never merges, labels, comments or pushes; there is no
fetch,writeFileorspawnin it.Why: today the merge decision is assembled by reading four separate sources (required checks, risk label, QA evidence, review) and writing the reasoning by hand in a comment. This makes that reasoning reproducible and pinned to one exact head instead of remembered.
Slice (8 new files, +911, nothing else touched)
merge-decision.mjsmerge-decision-input.mjsmerge-decision-core.mjsmerge-decision-render.mjsmerge-decision-record.mjsmerge-decision-self-test.mjsmerge-decision.test.mjsfixtures/merge-decision-3406.jsonDecision rules
hold, exit 1.hold, with the reason "record incomplete", not a tier statement.invalid, exit 2: "green" alone cannot tell a clean green from a flake.Local, on this head
--self-test-> 10/10 cases as expected (incl. "T0 and T3 get the same verdict", "no history is invalid", "gate green but latest run not success -> hold").node --test .github/scripts/merge-decision.test.mjs-> 15/15.node --test .github/scripts/*.test.mjs-> 54/54.5072d22d-> RECOMMEND MERGE, with both flakes named: the required-gate rollup (04:28:04 failure -> 04:42:58 success) andruntime-image / Build and smoke under the manager contract(04:23:24 failure -> 04:37:06 success). No CI claim is made for this head here; the PR's own runs are what they are.Since #3406 landed,
.github/scripts/*.test.mjsruns in thefrontendjob, so the tests in this PR do run in CI.Related #3393